//var gulp = require('gulp'),
//uglify = require("gulp-uglify");
//gulp.task('default',function () {
//gulp.src('./js/*.js') // 要压缩的js⽂文件
//.pipe(uglify()) //使⽤用uglify进⾏行行压缩,
//.pipe(gulp.dest('./js')); 
////压缩后的路路径
//
//});
//var gulp = require('gulp'),
//minifyCss = require('gulp-minifycss');
////rename = require('gulp-rename');
////uglify = require("gulp-uglify");
//gulp.task('default', function () {
////gulp.src('js/*.js')
//gulp.src('css/*.css')
////.pipe(uglify()) //压缩
//.pipe(minifyCss())
////.pipe(rename({suffix: '.min.css'})) //会将jquery.js重命名为
////jquery.min.js
//.pipe(gulp.dest('./css'));
////关于gulp-rename的更更多强⼤大的⽤用法请参考https://www.npmjs.com/
////package/gulp-rename
//});

//压缩css：
//var gulp = require('gulp'),
//minifyCss = require("gulp-minify-css");
//gulp.task('default', function () {
//gulp.src('css/*.css') // 要压缩的css
//.pipe(minifyCss()) //压缩css
//.pipe(gulp.dest('./css'));
//});
//重命名
//var gulp = require('gulp'),
//rename = require('gulp-rename');
//gulp.task('default', function () {
//gulp.src('css/*.css')
//.pipe(rename({suffix: '.min.css'})) //
//.pipe(gulp.dest('css'));
//});
//压缩图片
//var gulp = require('gulp'),
//  imagemin = require('gulp-imagemin');
//
//gulp.task('default', function () {
//  gulp.src('./img/*.{png,jpg,gif,ico}')
//      .pipe(imagemin())
//      .pipe(gulp.dest('./img'));
//});
//文件合并
var gulp = require('gulp'),
concat = require("gulp-concat");
gulp.task('default', function () {
gulp.src('js/*.js') //要合并的⽂文件
.pipe(concat('all.js')) // 合并匹配
//到的js⽂文件并命名为 "all.js"
.pipe(gulp.dest('all'));
});

